﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Warhammer40K_Simulator.model
{
    public class option : INotifyPropertyChanged
    {

        public option clone()
        {
            option o = new option();
            o.label = label;
            o.count = count;
            
            return o;
        }

        public event PropertyChangedEventHandler PropertyChanged;
        protected void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        private String label;
        public String Label
        {
            get
            {
                return label;
            }
            set
            {
                label = value;
                NotifyPropertyChanged("Label");
            }
        }

        private int count;
        public int Count
        {
            get
            {
                return count;
            }
            set
            {
                count = value;
                NotifyPropertyChanged("Count");
            }
        }

    }
}
